home *** CD-ROM | disk | FTP | other *** search
- function getParTime(lev)
- {
- parTime = parTimes[lev] - 1;
- }
- var levChoice = 1;
- onMouseDown = function()
- {
- holdMouse;
- };
- onEnterFrame = function()
- {
- checkHit = false;
- i = 1;
- while(i < 26)
- {
- if(_root["b" + i].hitTest(_root._xmouse,_root._ymouse))
- {
- blag._x = _xmouse;
- blag._y = _ymouse;
- blag._visible = true;
- checkHit = true;
- if(i < 10)
- {
- blag.lev.text = "0" + i;
- }
- else
- {
- blag.lev.text = i;
- }
- if(myTimes[i - 1] == 0)
- {
- blag.yTime.text = "X";
- }
- else if(myTimes[i - 1] < 10)
- {
- blag.yTime.text = "0" + myTimes[i - 1];
- }
- else
- {
- blag.yTime.text = myTimes[i - 1];
- }
- if(parTimes[i - 1] < 10)
- {
- blag.pTime.text = "0" + parTimes[i - 1];
- }
- else
- {
- blag.pTime.text = parTimes[i - 1];
- }
- if(proScores[i - 1] < 10)
- {
- blag.proTime.text = "0" + proScores[i - 1];
- }
- else
- {
- blag.proTime.text = proScores[i - 1];
- }
- if(myTimes[i - 1] == 0)
- {
- blag.gotoAndStop(1);
- }
- else if(myTimes[i - 1] <= parTimes[i - 1])
- {
- blag.gotoAndStop(3);
- }
- else if(myTimes[i - 1] > 0)
- {
- blag.gotoAndStop(2);
- }
- if(myTimes[i - 1] <= proScores[i - 1] && myTimes[i - 1] != 0)
- {
- blag.gotoAndStop(4);
- }
- }
- i++;
- }
- if(!checkHit)
- {
- blag._visible = false;
- }
- };
- stop();
- i = 1;
- while(i < 26)
- {
- _root["b" + i].onMouseDown = function()
- {
- if(this.hitTest(_root._xmouse,_root._ymouse))
- {
- levChoice = Number(this._name.substr(1,2));
- playAll = false;
- whiteFade.play();
- }
- };
- i++;
- }
- var ringsOnLevels = new Array();
- ringsOnLevels.push(0);
- ringsOnLevels.push(1);
- ringsOnLevels.push(2);
- ringsOnLevels.push(0);
- ringsOnLevels.push(1);
- ringsOnLevels.push(3);
- ringsOnLevels.push(0);
- ringsOnLevels.push(0);
- ringsOnLevels.push(1);
- ringsOnLevels.push(3);
- ringsOnLevels.push(1);
- ringsOnLevels.push(3);
- ringsOnLevels.push(0);
- ringsOnLevels.push(0);
- ringsOnLevels.push(1);
- ringsOnLevels.push(3);
- ringsOnLevels.push(2);
- ringsOnLevels.push(3);
- ringsOnLevels.push(3);
- ringsOnLevels.push(4);
- ringsOnLevels.push(4);
- ringsOnLevels.push(0);
- ringsOnLevels.push(4);
- ringsOnLevels.push(3);
- ringsOnLevels.push(4);
- var parTimes = new Array();
- parTimes.push(1);
- parTimes.push(1);
- parTimes.push(1);
- parTimes.push(1);
- parTimes.push(3);
- parTimes.push(3);
- parTimes.push(5);
- parTimes.push(3);
- parTimes.push(7);
- parTimes.push(10);
- parTimes.push(5);
- parTimes.push(4);
- parTimes.push(2);
- parTimes.push(6);
- parTimes.push(6);
- parTimes.push(7);
- parTimes.push(4);
- parTimes.push(4);
- parTimes.push(10);
- parTimes.push(20);
- parTimes.push(25);
- parTimes.push(10);
- parTimes.push(11);
- parTimes.push(25);
- parTimes.push(18);
- i = 0;
- while(i < parTimes.length)
- {
- i++;
- }
- var parTimes = new Array();
- parTimes.push(2);
- parTimes.push(2);
- parTimes.push(2);
- parTimes.push(2);
- parTimes.push(4);
- parTimes.push(4);
- parTimes.push(6);
- parTimes.push(4);
- parTimes.push(8);
- parTimes.push(6);
- parTimes.push(6);
- parTimes.push(6);
- parTimes.push(3);
- parTimes.push(7);
- parTimes.push(7);
- parTimes.push(8);
- parTimes.push(5);
- parTimes.push(5);
- parTimes.push(10);
- parTimes.push(10);
- parTimes.push(10);
- parTimes.push(6);
- parTimes.push(7);
- parTimes.push(14);
- parTimes.push(12);
- var proScores = new Array();
- proScores.push(1);
- proScores.push(1);
- proScores.push(1);
- proScores.push(1);
- proScores.push(2);
- proScores.push(1);
- proScores.push(2);
- proScores.push(1);
- proScores.push(2);
- proScores.push(3);
- proScores.push(2);
- proScores.push(1);
- proScores.push(1);
- proScores.push(5);
- proScores.push(1);
- proScores.push(3);
- proScores.push(2);
- proScores.push(1);
- proScores.push(5);
- proScores.push(5);
- proScores.push(5);
- proScores.push(2);
- proScores.push(2);
- proScores.push(4);
- proScores.push(6);
- var myProgress = 0;
- tapper = true;
- i = 0;
- while(i < 25)
- {
- if(myTimes[i] > 0)
- {
- _root["b" + (i + 1)].inside.gotoAndStop(2);
- myProgress += 2;
- if(myTimes[i] <= parTimes[i])
- {
- _root["b" + (i + 1)].inside.gotoAndStop(3);
- myProgress += 2;
- }
- if(myTimes[i] <= proScores[i])
- {
- _root["b" + (i + 1)].inside.gotoAndStop(4);
- myProgress += 4;
- }
- }
- i++;
- }
- var combinedProScore = 0;
- var combinedParScore = 0;
- tempNumber = 0;
- i = 0;
- while(i < 25)
- {
- if(myTimes[i] != 0)
- {
- tempNumber += myTimes[i];
- combinedProScore += proScores[i];
- combinedParScore += parTimes[i];
- }
- i++;
- }
- if(tempNumber > combinedProScore)
- {
- totMe.totS.text = Math.abs(combinedProScore - tempNumber) + " over Pro Score";
- }
- else if(tempNumber < combinedProScore)
- {
- totMe.totS.text = Math.abs(combinedProScore - tempNumber) + " under Pro Score";
- }
- else
- {
- totMe.totS.text = "At Pro Score";
- }
- if(tempNumber > combinedParScore)
- {
- totMe.totP.text = Math.abs(combinedParScore - tempNumber) + " over Par Score";
- }
- else if(tempNumber < combinedParScore)
- {
- totMe.totP.text = Math.abs(combinedParScore - tempNumber) + " under Par Score";
- }
- else
- {
- totMe.totP.text = "At Par Score";
- }
- if(tempNumber > 99)
- {
- totMe.trippy.text = tempNumber;
- }
- else if(tempNumber > 9)
- {
- totMe.trippy.text = "0" + tempNumber;
- }
- else
- {
- totMe.trippy.text = "00" + tempNumber;
- }
- bg.gotoAndStop(myProgress + 1);
- if(myProgress >= 100)
- {
- goodStar.gotoAndStop(2);
- }
- if(myProgress >= 200)
- {
- goodStar2.gotoAndStop(2);
- }
- if(myProgress < 10)
- {
- myProgressDisp = "0" + myProgress + "%";
- }
- else
- {
- myProgressDisp = myProgress + "%";
- }
- myMenu.customItems[0].enabled = false;
- myMenu.customItems[1].enabled = false;
- myMenu.customItems[2].enabled = false;
-